package com.tqjc.system.system.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.tqjc.system.system.entity.SysGateRecordEntity;
import com.tqjc.system.system.model.bo.SysGateRecordBO;

import java.util.List;

/**
 * @author 86195
 * @version 1.0
 * @description 道闸记录服务接口
 * @date 2023/9/22 16:03
 */
public interface SysGateRecordService extends IService<SysGateRecordEntity> {

    public IPage<SysGateRecordEntity> getListByPage(IPage<SysGateRecordEntity> page,SysGateRecordBO sysGateRecordBO);

    SysGateRecordEntity queryById(String id);

    SysGateRecordEntity getMaterialByCarlicense(String carLicense);

    void updateInfo(SysGateRecordBO sysGateRecordBO) throws Exception;

    /**
     * 打开道闸
     * @param gateNameParam
     * @throws Exception
     */
    String openGate(String gateNameParam,String idKey,String status) throws Exception;

    void stopOpen(String idKey) throws Exception;

    void monitor();

    void acceptResult(String resJson);
}
